<?php
  $host = '127.0.0.1';
  $user = 'root';
  $pass = '12345678';
  $dbname = 'pinshang';
  $db = new mysqli($host,$user,$pass,$dbname);
  if ($db -> connect_error) {
    echo '连接失败'.$db->connect_error;
  }
  header('content-type:application/json');
  header('Access-Control-Allow-Origin: *');
  header('Access-Control-Allow-Headers:*');
?>
